﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Bouyei.Geo.GeoParsers.Parser
{
    using Bouyei.Geo.GeoParsers.Shpfile;
    using Geometries;
    /// <summary>
    /// .shx文件格式解析
    /// </summary>
    public class ShxParser
    {
        public ShxParser()
        {
        }

        public ShxInfo FromReader(string shxFile)
        {
            using (ShxReader shx = new ShxReader(shxFile))
            {
                return shx.Reader();
            }
        }
    }
}
